var cur_row_tr = null;

function mOvr(roww) {
	roww.style.cursor = "hand";
	if(roww != cur_row_tr){
		roww.style.backgroundColor = "#FFF8C5";
	}
}
function mOut(roww) {
	roww.style.cursor = "default";
	roww.style.backgroundColor = "#F9F8E8";
	if(cur_row_tr != null){
		cur_row_tr.style.backgroundColor = "#EEE999";
	}
}

function selectRow(row){
	if(cur_row_tr != null){
		cur_row_tr.style.backgroundColor="#F9F8E8";
	}
	row.style.backgroundColor="#EEE999";
	cur_row_tr = row
}
function goPage(pi){
	document.cep_grid_query_form.action.value = "goPage";
	document.cep_grid_query_form.topage.value = pi;
	document.cep_grid_query_form.submit();
}
function dispTd(id){
	var tdiv = document.getElementById(id);
	var disp = document.getElementById("display");
	disp.style.left = event.clientX;
	disp.style.top = event.clientY;
    disp.innerHTML = tdiv.innerHTML;
    disp.style.display="block";
}

function hideTd(id){
	var disp = document.getElementById("display");
	disp.innerHTML = "";
	disp.style.display="none";
}
function queryData(tform){
	if(checkForm(tform)){
		tform.submit();
	}
}